package com.sc.pattern.worker;

/**
 * Created  on 2018/1/13.
 *
 * @author sc
 */
public class Request {
    private String name;
    private int number;

    public Request(String name, int number) {
        this.name = name;
        this.number = number;
    }

    public void execute(){
        System.out.println(Thread.currentThread().getName()+"  execute"+this);
    }

    @Override
    public String toString() {
        return "Request{" +
                "name='" + name + '\'' +
                ", number='" + number + '\'' +
                '}';
    }
}
